package com.ecom.common.service;

import com.ecom.common.dao.UserDao;
import com.ecom.common.model.User;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by jimmy on 7/28/14.
 */
@Service
public class UserService {

    private static final Logger logger = Logger.getLogger(ProductService.class);

    @Autowired
    UserDao userDao;

    public boolean verifyUser(User user) {

        boolean isSuccess = this.userDao.verifyUser(user);

        logger.debug(" checkLogin: " + String.valueOf(isSuccess));

        return isSuccess;
    }
}
